package com.lb.undertow.service.impl;

import com.lb.undertow.mapper.CountryMapper;
import com.lb.undertow.pojo.Country;
import com.lb.undertow.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CountryServiceImpl implements CountryService {

    @Autowired
    private CountryMapper countryMapper;

    @Override
    public void add(Country country) {
        country.setCountryname("北京");
        country.setCountrycode("001");
        countryMapper.insertSelective(country);
    }
}
